package com.zk.manager.controller;


import com.zk.common.entity.R;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@Controller
@RequestMapping("/nacos/manager")
@RefreshScope
public class NacosController {

	@Value("${sid}")
	private String sid;
	@Value("${sname}")
	private String sname;

	@GetMapping("/getInfo")
	@ResponseBody
	public R getInfo(){
		return R.ok().data("sid",sid).data("sname",sname);
	}

	@GetMapping("/blockpage")
	public String blockpage(){
		return "block";
	}
}
